package com.xinhe.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "订单地址详情")
@Table(name = "tb_order_address")
public class OrderAddress {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("会员id")
    private Long userId;
    @ApiModelProperty("订单id")
    private Long orderId;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("电话")
    private String telephone;
    @ApiModelProperty("省")
    private String province;
    @ApiModelProperty("市")
    private String city;
    @ApiModelProperty("区")
    private String area;
    @ApiModelProperty("详细地址")
    private String detail;
    @ApiModelProperty("类型  COMMON(\"普通订单\"),\n" +
            "TEAM_ORDER(\"团购订单\"),\n" +
            "INTEGRAL(\"专区订单\");")
    private String type;
}
